import request from '@/util/post'

export function checkHouseInformationCode(data) {
    return request({
        url: '/house-information/check-code',
        method: 'post',
        data
    })
}
/* 添加住房登记 */
export function addHouseInformation(data) {
    return request({
        url: '/house-information/add',
        method: 'post',
        data
    })
}

/* 搜索查询住房登记 */
export function searchHouseInformation(data) {
    return request({
        url: '/house-information/search',
        method: 'post',
        data
    })
}

/* 查看某一住房信息详情 */
export function viewHouseInformation(data) {
    return request({
        url: '/house-information/view/' + data.id,
        method: 'post',
        data
    })
}

/* 查看某一住房信息详情信息（可以多个） */
export function viewHouseInformationArray(data) {
    return request({
        url: '/house-information/view',
        method: 'post',
        data
    })
}

/* 保存某一住房信息详情 */
export function saveHouseInformation(data) {
    return request({
        url: '/house-information/edit',
        method: 'post',
        data
    })
}

/* 删除某一住房信息详情 */
export function deleteHouseInformation(data) {
    return request({
        url: '/house-information/delete/' + data.id,
        method: 'post',
        data
    })
}
